//
//  CPSwiftUIController.swift
//  CJPackDemo
//
//  Created by 陈警卫 on 2024-01-18.
//

import Foundation
import CJPack
import SwiftUI

class CPSwiftUIController: CJBaseBackController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let homeView = CSHomeView()
        
        let vc = UIHostingController(rootView: homeView)
        cj_addHosting(hc: vc)
    }
    
}

struct CSHomeView: View {
    var body: some View {
        
        Text("text")
        
    }
}

#Preview {
    CSHomeView()
}
